import java.util.Scanner;

public class Max2 {
    public static int max2(int a,int b){

        if (a>b)
            return a;
        else
            return b;
    }

    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        System.out.println("请输入两个值：");
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        System.out.println("最大值是"+max2(a,b));




    }
}
